//
//  ListCellData.m
//  UKListManager
//
//  Created by ET|冰琳 on 16/11/9.
//  Copyright © 2016年 UK. All rights reserved.
//

#import "ListCellData.h"

@interface ListCellData ()

@property (nonatomic, copy) NSString *identifier;
@property (nonatomic, copy) MultipeerCellConfiguration config;
@property (nonatomic, copy) MultipeerCellSelect        select;
@property (nonatomic, copy) MultipeerCellHeight        height;

@end


@implementation ListCellData

+ (ListCellData *)create{
    return [ListCellData new];
}

+ (instancetype)withIdentifier:(NSString *)identifier
                    cellConfig:(MultipeerCellConfiguration)configuration
                        select:(MultipeerCellSelect)select{
    ListCellData *data = [ListCellData new];
    data.identifier = identifier;
    data.config = configuration;
    data.select = select;
    return data;
}

+ (instancetype)withCell:(Class)cellClass
              cellConfig:(MultipeerCellConfiguration)configuration
                  select:(MultipeerCellSelect)select{
    ListCellData *data = [ListCellData new];
    data.identifier = NSStringFromClass(cellClass);
    data.config = configuration;
    data.select = select;
    return data;

}

/*
- (ListCellData *)withIdentifier:(NSString *)identifier{
    self.identifier = identifier;
    return self;
}

- (ListCellData *)withCell:(Class)cellClass{
    self.identifier = NSStringFromClass(cellClass);
    return self;
}

- (ListCellData *)withCellConfig:(MultipeerCellConfiguration)configuration{
    self.config = configuration;
    return self;
}


- (ListCellData *)withSelect:(MultipeerCellSelect)select{
    self.select = select;
    return self;
}
*/

- (ListCellData *)withHeight:(MultipeerCellHeight)height{
    self.height = height;
    return self;
}

@end
